package com.service;

import com.po.PermissionResourcePO;
import com.utils.Tree;
import com.vo.PermissionResourceVO;
import com.vo.ResourceVO;

import java.util.List;

/**
 * @Author: chihaojie
 * @Date: 2019/5/29 16:18
 * @Version 1.0
 * @Note
 */
public interface PermissionResourceService {

    PermissionResourceVO save(PermissionResourcePO permissionResourcePO);

    PermissionResourceVO edit(PermissionResourcePO permissionResourcePO);

    Object remove(Long id);

    List<Tree<ResourceVO>> treeByResourceId(Long resourceId);

    List<ResourceVO> getTopResourceNodeList();

    List<ResourceVO> getSubResourceNodeList(String resourceId);

    List<Tree<ResourceVO>> treeResource();
}
